import { _decorator, Component, director, Label, labelAssembler, Node } from 'cc';
import { LayerBase } from '../utils/LayerBase';
import { UILayerMgr } from '../utils/UILayerMgr';
import { AudioMgr } from '../utils/AudioMgr';
import { Adsdk } from './Adsdk';
const { ccclass, property } = _decorator;

@ccclass('FailPanel')
export class FailPanel extends LayerBase {
    
    @property(Label)
    selfScoreLabel:Label;


    init(somedData?: any): void {
        Adsdk.instance.showInterstitialAd();
        this.selfScoreLabel.string="我的得分:"+somedData;
    }

    onclickComfirmBtn() {
        AudioMgr.ins.stop();
        UILayerMgr.getIns.closeAllLayer();
    }

}


